package com.ruoyi.project.sedd.order.domain;

import org.springframework.stereotype.Component;

import java.util.Objects;

@Component
public class SellCustomerA {
    private Integer cusId;
    private String cusName;
    private String cusCompany;
    private String cusIpone;
    private String IDNubmer;

    public SellCustomerA() {
    }

    public SellCustomerA(Integer cusId, String cusName, String cusCompany, String cusIpone, String IDNubmer) {
        this.cusId = cusId;
        this.cusName = cusName;
        this.cusCompany = cusCompany;
        this.cusIpone = cusIpone;
        this.IDNubmer = IDNubmer;
    }

    public Integer getCusId() {
        return cusId;
    }

    public void setCusId(Integer cusId) {
        this.cusId = cusId;
    }

    public String getCusName() {
        return cusName;
    }

    public void setCusName(String cusName) {
        this.cusName = cusName;
    }

    public String getCusCompany() {
        return cusCompany;
    }

    public void setCusCompany(String cusCompany) {
        this.cusCompany = cusCompany;
    }

    public String getCusIpone() {
        return cusIpone;
    }

    public void setCusIpone(String cusIpone) {
        this.cusIpone = cusIpone;
    }

    public String getIDNubmer() {
        return IDNubmer;
    }

    public void setIDNubmer(String IDNubmer) {
        this.IDNubmer = IDNubmer;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        SellCustomerA that = (SellCustomerA) o;
        return Objects.equals(cusId, that.cusId) &&
                Objects.equals(cusName, that.cusName) &&
                Objects.equals(cusCompany, that.cusCompany) &&
                Objects.equals(cusIpone, that.cusIpone) &&
                Objects.equals(IDNubmer, that.IDNubmer);
    }

    @Override
    public int hashCode() {
        return Objects.hash(cusId, cusName, cusCompany, cusIpone, IDNubmer);
    }

    @Override
    public String toString() {
        return "SellCustomerA{" +
                "cusId=" + cusId +
                ", cusName='" + cusName + '\'' +
                ", cusCompany='" + cusCompany + '\'' +
                ", cusIpone='" + cusIpone + '\'' +
                ", IDNubmer='" + IDNubmer + '\'' +
                '}';
    }
}
